﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Clinica_Frba.NewFolder8
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            if (publico.rolesUsuarioLogueado.Contains("Profesional"))
            {
                button1.Visible = true;
            }
            if (publico.rolesUsuarioLogueado.Contains("Administrativo"))
            {
                button1.Visible = true;
            }
            
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Clinica_Frba.Generar_Receta.AltaRecetas form = new Clinica_Frba.Generar_Receta.AltaRecetas("56566");
            form.ShowDialog(this);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Clinica_Frba.Generar_Receta.ListadoRecetas form = new Clinica_Frba.Generar_Receta.ListadoRecetas();
            form.ShowDialog(this);
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }
    }
}
